package com.agv.backend.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AgvTask {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String taskCode;
    private String taskName;
    private String startPos;
    private String taskTrip;
    private String creator;
    private String executor;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date execTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String taskStatus; // 待巡视/巡视中/待上传/已完成
    private Integer round;
    private Boolean uploaded;
    private String remark;
    private Long cloudTaskId;
    private Boolean deleteFlag;
}
